package org.jeecg.modules.erp.goods.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.erp.goods.entity.ErpGoods;
import org.jeecg.modules.erp.goods.vo.ErpGoodsPage;
import org.jeecg.modules.erp.goods.vo.ErpGoodsVo;
import org.jeecg.modules.erp.goods.vo.ErpMateralSupplierVo;

import java.util.List;

/**
 * @Description: 物料基础信息
 * @Author: jeecg-boot
 * @Date: 2024-05-21
 * @Version: V1.0
 */
public interface ErpGoodsMapper extends BaseMapper<ErpGoods> {

    IPage<ErpGoodsPage> goodsPages(Page<ErpGoods> page, @Param("model") ErpGoods model);

    IPage<ErpGoodsPage> goodsPagesList(Page<ErpMateralSupplierVo> page, @Param("model") ErpMateralSupplierVo model);

    List<ErpGoodsPage> goodsSupplierList( @Param("model") ErpMateralSupplierVo model);


    //todo 产品关联配方有问题
    List<ErpGoodsVo> queryGoodsAndFormula(@Param("idArray") String[] idArray);

    void correlationFormula(@Param("model") ErpGoods model);

    List<ErpGoodsVo> queryByReviewId(@Param("id") String id);
}
